import { BasicColumn } from '/@/components/Table';
import { useI18n } from '/@/hooks/web/useI18n';

const { t } = useI18n();

export function getFileTypeSettingColumns(): BasicColumn[] {
  return [
    {
      title: t('routes.demo.fileTypeSetting.fileTypeIdentification'),
      dataIndex: 'id',
      width: 150,
      fixed: 'left',
    },
    // {
    //   title: t('routes.demo.fileTypeSetting.icon'),
    //   dataIndex: 'pdmfileico',
    //   align: 'center',
    //   width: 25,
    //   slots: { customRender: 'pdmfileico' },
    // },
    {
      title: t('routes.demo.fileTypeSetting.fileTypeSuffix'),
      dataIndex: 'pdmfileext',
      width: 120,
    },
    {
      title: t('routes.demo.fileTypeSetting.producingSoftware'),
      dataIndex: 'pdmcreatesoft',
      width: 120,
    },
    {
      title: t('routes.demo.fileTypeSetting.browsingMethod'),
      dataIndex: 'pdmviewocx',
      width: 120,
    },
    {
      title: t('routes.demo.fileTypeSetting.hasAttachedGraphics'),
      dataIndex: 'pdmattach',
      width: 120,
      slots: { customRender: 'pdmattach' },
    },
  ];
}
